<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>demo7-双向数据绑定-checkbox</title>
    <script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>

</head>
<body>
<div id="case2-userinput">
<input type="checkbox" value="Jack" v-model="checked">Jack

<input type="checkbox" value="John" v-model="checked">John

<input type="checkbox" value="Mike" v-model="checked">Mike
    <p>{{checked}}</p>
</div>
<script type="text/javascript">
    var userinputcheckbox=new Vue({
        el:"#case2-userinput",
        data:{
            checked: []
        }
    })
</script>
</body>
</html>